package com.example.base.db

import androidx.room.*
import androidx.room.OnConflictStrategy.Companion.REPLACE
import com.example.base.entity.OrderEntityItem

@Dao
interface OrderDao {

    @Insert(onConflict = REPLACE)
    fun getInsertOrder(item : OrderEntityItem) : Long

    @Query("select * from OrderEntityItem ")
    fun getQueryOrder() : List<OrderEntityItem>

    @Delete
    fun getDeleteOrder(item : OrderEntityItem) : Int

    @Update
    fun getUpdateOrder(item : OrderEntityItem) : Int

}